package com.lehuowujie.lehuomarket.base;

import android.app.Application;

import com.lehuowujie.lehuomarket.photo.imageloader.ImageLoader;
import com.lehuowujie.lehuomarket.util.SharedPrefUtil;

/**
 * Created by 王瑞铭 on 2017/1/12.
 */
public class BaseApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        initImageLoader();
        SharedPrefUtil.getInstance(this).getSp();
    }

    /**
     * 初始化图片加载器
     */
    private void initImageLoader(){
        ImageLoader.getInstance(5, ImageLoader.Type.FIF0);
    }

    @Override
    public void onLowMemory() {
        super.onLowMemory();
    }
}
